<?php
    include_once("checkAuthenticationAction.php");
    include_once("../service/articleService.php");
    include_once("../service/bannerService.php");
    include_once("../util/constant.php");
    $type = $_POST["type"];
    $event_id = $_POST["event"];
    $thumbnail = $_POST["thumbnail"];
    $banner_id = $_POST["edit_banner_id"];
    
    $result = updateBanner($type,$event_id, $thumbnail, $banner_id);
    echo "<script>window.location.href='../admin/banner_detail.php?action=".EDIT_ACTION."&id=".$banner_id."';</script>";
?>